import request from "@/utils/request";

// 查询二维码管理列表
export function listQr(query) {
  return request({
    url: "/seedlingSys/qr/list",
    method: "get",
    params: query,
  });
}

// 查询二维码管理详细
export function getQr(qrID) {
  return request({
    url: "/seedlingSys/qr/" + qrID,
    method: "get",
  });
}

// 新增二维码管理
export function addQr(data) {
  return request({
    url: "/seedlingSys/qr",
    method: "post",
    data: data,
  });
}

// 批量新增二维码
export function batchAddQr(data) {
  return request({
    url: "/seedlingSys/qr/batch",
    method: "post",
    data: data,
  });
}

// 修改二维码管理
export function updateQr(data) {
  return request({
    url: "/seedlingSys/qr",
    method: "put",
    data: data,
  });
}

// 删除二维码管理
export function delQr(qrID) {
  return request({
    url: "/seedlingSys/qr/" + qrID,
    method: "delete",
  });
}
